import urllib.request
page = urllib.request.urlopen("http://beans.itcarlow.ie/prices.html")
text = page.read().decode("utf8")
where = text.find('>$')
price = float(text[where+2:where+6])
print (price)
if price > 4.74:
	print ("buy!")
else:
	print("no")
